<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<!--v-bind:src  可以简写成 :src -->
			<button v-show="index>0" @click="index--">上一页</button>
			<div>
				<img :src="list[index]"/>
			</div>
			<button v-show="index<list.length-1" @click="index++">下一页</button>
		</div>
		<script src="js/vue.js"></script>
		<script>
			const app = new Vue({
				el:'#app',
				data:{
					index:0,
					list:[
						'img/11-00.gif',
						'img/11-01.gif',
						'img/11-02.gif',
						'img/11-03.gif',
						'img/11-04.png',
						'img/11-05.png',
					]
				}
			})
		</script>
	</body>
</html>